
#include <iostream>
#include <cstdio>
#include <signal.h>
#include <unistd.h>
using namespace std;

namespace ZMH
{
    void HandlerSig(int sig)
    {
        cout << "执行进程调度" << endl;
        cout << "执行除0异常错误" << endl;
        cout << "......" << endl;

        alarm(1); // 每隔 1 秒调度一次
    }
}

void HandlerSig1(int sig)
{
    cout << "庄梦涵love王珂" << endl;
}

void HandlerSig2(int sig)
{
    cout << "刘爽love常梦圆" << endl;
}

int main()
{
    signal(2, HandlerSig1);
    signal(20, HandlerSig2);
    int a = 0;
    cin >> a;
    while (true);

    return 0;
}